package com.example.wtx.generator.service;


import com.example.wtx.generator.dao.GeneratorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class GeneratorServiceImpl  implements GeneratorService{

    @Autowired
    private GeneratorMapper generatorMapper;

    //获取数据库所有表名（供选择）
    @Override
    @Transactional
    public List<String> getTableNames() {
        return generatorMapper.getTableNames();
    }
}
